{php include wl_template('common/header');}
<ul class="nav nav-tabs">
    <li><a href="{php echo web_url('dating/member/labelList')}">动态列表</a></li>
    <li class="active"><a href="javascript:;">{if $id}编辑{else}发布{/if}虚拟动态</a></li>
</ul>
<div class="app-content">
    <div class="app-form">
        <div class="panel panel-default">
            <form class="form-horizontal form-validate" method="post">
                <div class="form-group">
                    <label class="col-sm-2 control-label">用户昵称<span class="must-fill">*</span></label>
                    <div class="col-sm-9">
                        <input class="form-control" type="text" required name="data[fictitious_nickname]" value="{$info['fictitious_nickname']}" maxlength="20"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">用户头像<span class="must-fill">*</span></label>
                    <div class="col-sm-9">
                        {php echo attachment_select('data[fictitious_avatar]',$info['fictitious_avatar']);}
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">用户性别</label>
                    <div class="col-sm-9">
                        <label class="radio-inline">
                            <input type="radio" name="data[gender]" value="1" {if $info['gender'] != 2}checked="checked"{/if}> 男
                        </label>
                        <label class="radio-inline">
                            <input type="radio" name="data[gender]" value="2" {if $info['gender'] == 2}checked="checked"{/if}> 女
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">动态</label>
                    <div class="col-sm-9">
                        <textarea class="form-control" name="data[content]"  style="resize: none;height: 150px;">{$info['content']}</textarea>
                        <div class="help-block">动态、图片、视频至少需要存在一项</div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">图片</label>
                    <div class="col-sm-9">
                        {php echo attachment_select_multi('data[photo]',$info['photo']);}
                        <div class="help-block">动态、图片、视频至少需要存在一项</div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">视频</label>
                    <div class="col-sm-9">
                        {php echo attachment_select_video('data[video]',$info['video']);}
                        <div class="help-block">动态、图片、视频至少需要存在一项</div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">浏览量</label>
                    <div class="col-sm-9">
                        <input class="form-control" type="number" name="data[pv]" value="{$info['pv']}"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">地址<span class="must-fill">*</span></label>
                    <div class="col-sm-9">
                        {php echo tpl_select_address('data[address]','data[lng]','data[lat]',$info['address'],$info['lng'],$info['lat'])}
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">状态</label>
                    <div class="col-sm-9">
                        <label class="radio-inline">
                            <input type="radio" name="data[status]" value="1" {if $info['status'] == 1}checked="checked"{/if}> 审核中
                        </label>
                        <label class="radio-inline">
                            <input type="radio" name="data[status]" value="2" {if $info['status'] == 2}checked="checked"{/if}> 未通过
                        </label>
                        <label class="radio-inline">
                            <input type="radio" name="data[status]" value="3" {if $info['status'] != 1 && $info['status'] != 2}checked="checked"{/if}> 显示中
                        </label>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-9">
                        <input type="hidden" name="token" value="{$_W['token']}" />
                        <input type="hidden" name="id" value="{$id}" />
                        <input type="submit" name="submit" value="提交" class="btn btn-primary col-sm-1 min-width" />
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
{php include wl_template('common/footer');}
